import Vue from 'vue'
import Router from 'vue-router'
import Navigate from '@/components/Navigate'
import TestDynamicForm from '@/components/TestDynamicForm'
import TestGrid from '@/components/TestGrid'
import counter from '@/components/counter'
import test from '@/components/test'
import menu from '@/components/menu'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Navigate,
      children: [
        {
          path: '/dynamicForm',
          component: TestDynamicForm
        },
        {
          path: '/grid',
          name: 'TestGrid',
          component: TestGrid
        },
        {
          path: '/counter',
          name: 'counter',
          component: counter
        },
        {
          path: '/test',
          name: 'test',
          component: test
        },
        {
          path: '/menu',
          name: 'menu',
          component: menu
        }
      ]
    }
  ]
})
